<template>
	<div class="mine">
		<van-cell title="退出登录" is-link @click="out" />
		<van-cell title="登录" is-link @click="login" />
		<van-cell title="注册" is-link @click="register" />
		<van-cell title="订单" is-link @click="goOrder" />
		<van-cell title="地址" is-link @click="goAddress" />
		<van-cell title="地址列表" is-link @click="goAddressList" />
	</div>
</template>

<script>
export default {
	data() {
		return {};
	},
	computed: {},
	watch: {},

	methods: {
		out() {
			//点击清除token
			localStorage.setItem("token", "");
			window.location.reload();
		},
		login() {
			// 跳到登陆页面
			this.$router.push("/login");
		},
		register() {
			// 跳转到注册页面
			this.$router.push("/register");
		},
		goOrder() {
			// 跳转到订单页
			this.$router.push("/order");
		},
		goAddress() {
			// 跳转到订单页
			this.$router.push("/address");
		},
		goAddressList() {
			// 跳转到订单页
			this.$router.push("/addressList");
		},
	},
	created() {},
	mounted() {},
	components: {},
};
</script>
<style scoped></style>
